<template>
  <div class="container">
    <div class="hot-issue">
      <div class="title">
        <img src="../assets/help/hot_issue.png" alt="#">
        热门问题
      </div>
      <div class="hot-issue-items">
        <div class="item" @click="handleReadHelpDetail">
          <p>什么是云木屋？</p>
          <van-icon class="icon" name="arrow" color="#BCBCBC" />
        </div>
        <div class="item" @click="handleReadHelpDetail">
          <p>有订金和无订金两种代理方式有何不同?</p>
          <van-icon class="icon" name="arrow" color="#BCBCBC" />
        </div>
        <div class="item" @click="handleReadHelpDetail">
          <p>怎么成为代理商?</p>
          <van-icon class="icon" name="arrow" color="#BCBCBC" />
        </div>
      </div>
    </div>
    <div class="issue">
      <div class="title">
        <img src="../assets/help/issue.png" alt="#">
        常见问题
      </div>
      <div class="issue-items">
        <div class="item" @click="handleReadHelpDetail">
          <p>代理需要把货物拉回来吗?</p>
          <van-icon class="icon" name="arrow" color="#BCBCBC" />
        </div>
        <div class="item" @click="handleReadHelpDetail">
          <p>货物管理的费用谁来出？</p>
          <van-icon class="icon" name="arrow" color="#BCBCBC" />
        </div>
        <div class="item" @click="handleReadHelpDetail">
          <p>代理费由谁支付？</p>
          <van-icon class="icon" name="arrow" color="#BCBCBC" />
        </div>
      </div>
    </div>

  </div>
</template>

<script>
export default {
  data() {
    return {

    }
  },
  methods: {
    // 查看帮助详情
    handleReadHelpDetail() {
      this.$router.push({
        path: '/help-detail'
      })
    },
  },
}
</script>

<style lang='scss' scoped>
.container {
  width: 100vw;
  min-height: 100vh;
  background-color: #f7f7f7;

  text-align: left;
  > .hot-issue,
  > .issue {
    padding: 40px 30px 0;
    background-color: #fff;
    > .title {
      font-size: 30px;
      font-weight: bolder;
      color: rgba(17, 17, 17, 1);
      > img {
        width: 26px;
        height: 30px;
        vertical-align: middle;
      }
    }
  }
  .hot-issue-items {
    margin-bottom: 20px;
  }
  .hot-issue-items,
  .issue-items {
    > .item {
      display: flex;
      justify-content: space-between;
      align-content: center;
      font-size: 30px;
      font-weight: 400;
      color: rgba(51, 51, 51, 1);
      padding: 40px 0;
      border-bottom: 1px solid #f2f2f2;
      &:last-of-type {
        border: none;
      }
    }
  }
}
</style>
